package com.bml.architect.seata.consumers;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.HttpMethod;
import org.springframework.web.bind.annotation.*;

/**
 * @author: baiml
 * @Title: AccountFeignService
 * @ProjectName: 中台技术平台
 * @Depart 中台研发部
 * @Description:
 * @date: 2021/5/12 8:48
 */
@FeignClient(value = "seata-account-service", path = "/account/")
public interface AccountFeignService {

    @RequestMapping(value = "/debut",method = RequestMethod.GET)
    Boolean debit(@RequestParam("userId") String userId, @RequestParam("money") int money);
}
